package cn.wolfcode.shop.cloud.service;

import cn.wolfcode.shop.cloud.domain.OrderInfo;

public interface IOrderInfoService {
    /**
     * 秒杀业务
     * @param userId
     * @param seckillId
     * @return
     */
    String doSeckill(Long userId, Long seckillId);

    /**
     *根据订单编号查询订单信息
     * @return
     */
    OrderInfo getOrderInfoByOderNo(String orderNo);

    /**
     *回补预支付
     * @param orderNo
     * @param status
     * @return
     */
    int changOrderInfoStatus(String orderNo, Integer status);



    /**
     * 修改订单状态
     * @param orderNo
     * @param status
     */
    void updateOrderStatus(String orderNo, Integer status);
}
